<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<div class="table-responsive">
	<table class="cntable table table-bordered dataTable table-actiTask ">
		<thead>
			<tr>
				<th style="width: 50px">序号</th>
				<th style="width: 100px">任务名称</th>
				<th style="width: 100px">任务类型</th>
				<th style="width: 100px">任务奖励</th>
				<th style="width: 100px">图标</th>
				<th style="width: 100px">任务状态</th>
				<th style="width: 100px">确认操作</th>
				<th style="width: 100px">确认状态</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="actiTask" items="${actiTasks}" varStatus="status">
				<tr data-id="${actiTask.id}">
					<td>${status.index+1}</td>
					<td>${actiTask.taskName}</td>
					<td><t:provider packageName="acti" enumClassName="TaskType" value="${actiTask.taskType}" /></td>
					<td>${actiTask.reward}<t:provider packageName="ser" enumClassName="GoodsCurrencyState" value="${actiTask.rewardCurrency}" /></td>
					<td style="text-align: center;">
						<c:if test="${actiTask.iconImg!=null && actiTask.iconImg!=''}">
							<img style="width:100px; height:80px;" id="smallPicShow" src="${tfn:getFileUrl(actiTask.iconImg)}" /> 
						</c:if>
						<c:if test="${actiTask.iconImg==null || actiTask.iconImg==''}">
							无
						</c:if>
					</td>
					<td><t:provider packageName="acti" enumClassName="ActiState" value="${actiTask.taskState}" /></td>
					<td><c:if test="${actiTask.confirmState eq 'unConfirm'}">
							<ul class="icons-list">
								<li>
									<a href="javascript:onConfirm('${actiTask.id}')" title="点击确认">
										<i class="icon-checkmark-circle2 text-primary"/>
									</a>
								</li>
							</ul>
						</c:if>
					</td>
					<td>
						<c:if test="${actiTask.confirmState eq 'unConfirm'}">待确认</c:if> 
						<c:if test="${actiTask.confirmState eq 'confirmed'}">已确认</c:if>
					</td>
				</tr>
			</c:forEach>
		</tbody>
		<tfoot>
			<tr>
				<th class="pager-th absolute-pos">
					<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
				</th>
			</tr>
		</tfoot>
	</table>
</div>